
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\grid\GridView;
use mihaildev\elfinder\InputFile;
use yii\helpers\ArrayHelper;
use yii\data\ActiveDataProvider;
?>
 
<?php 

//开始页面
?>

<div>

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true,'style'=>'display:inline;']) ?>
    
   
   	<!--  	$form->field($model, 'lifestyle')->widget(\yii\redactor\widgets\Redactor::className())   -->
   	
   	<?= $form->field($model, 'lifestyle')->widget('backend\widgets\ueditor\UEditor',[
    'options'=>[
        'initialFrameWidth' => 850,
    ]
]) ?>
    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('app','Create') : Yii::t('app','Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>
        
    <?php ActiveForm::end(); ?>
        
</div>


